let appData={
    page_3: {
        soruces: [
            { id: 0, content: "images/resources/content1.png" },
            { id: 1, content: "images/resources/content1.png" }
        ]
    },
    page_4: {
        soruces: [
            { id: 0, type: "array", contents: [{src: "images/resources/p3_1_1.png"}, {src: "images/resources/p3_1_2.png"}, {src: "images/resources/p3_1_3.png"}, {src: "images/resources/p3_1_4.png"}, {src: "images/resources/p3_1_5.png"}, {src: "images/resources/p3_1_6.png"}] },
            { id: 1, content: "images/resources/content1.png" }
        ]
    },
    page_5: {
        soruces: [
            { id: 0, content: "images/resources/dlg3.png"},
            { id: 1, content: "images/resources/dlg2.png", marginTop: 50, marginBottom: 50 },
        ]
    },
    page_6: {
        soruces: [
            { id: 0, content: "images/resources/content1.png" },
            { id: 1, content: "images/resources/dlg3.png" }
        ]
    }
}

const AppDataMap = new Map(Object.entries(appData));

(()=>{
    for (const appDataKey in appData) {
        appData[appDataKey].soruces.forEach((item)=>{
            AppDataMap.set(appDataKey+"_"+item.id, item);
        })
    }
})()

function getAppSourceById(id) {
    return AppDataMap.get(id);
}
